<template>
  <div class="ncbox">
    <div id="slider1"></div>
  </div>
</template>

<style lang="less" scoped>
.stage .stage1{padding:0 !important;}
</style>
<script>

export default {
  components: {
  },
  data() {
    return {
        NC_Opt : {
            renderTo : "#slider1",
            appkey : 'FFFF00000000017AA19E',
            scene : 'nc_login_h5',
            /* trans: {"key1": "code200"}, */
            token : ["FFFF00000000017AA19E", (new Date()).getTime(), Math.random()].join(':'),
            isEnabled : true,
            timeout : 3000,
            times : 5,
            callback : function(data) {
              var result = {
                  'nc_token':'FFFF00000000017AA19E',
                  'sessionid':data.csessionid,
                  'sig':data.sig,
                  'scene':'nc_login_h5'
              };
              // 绑定Java接口与JavaScript函数。
              window.testInterface.getSlideData(JSON.stringify(result));
            }
        }
    };
  },
  methods: {
    
  },
  mounted(){
       new noCaptcha(this.NC_Opt)
      //NoCaptcha.init(this.NC_Opt);
  }
};
</script>